﻿namespace SiteTest
{

    public class App
    {

        public static string GetUrlIcon(string relativeAdress)
        {
            return "/Data/Icons/" + ExtractSlash(relativeAdress);
        }

        public static string ExtractSlash(string fileName)
        {
            if (fileName.StartsWith("/")) fileName = fileName.Substring(1, fileName.Length - 1);
            return fileName;
        }


    }

}